//
//  XTBaseView.swift
//  XTMuteOpen
//
//  Created by bushAK on 2024/1/22.
//

import UIKit

extension UIView{
    @objc  public func applyRoundCorners(view: UIView, corners: UIRectCorner, radius: CGFloat) {
           let maskPath = UIBezierPath(roundedRect: view.bounds, byRoundingCorners: corners, cornerRadii: CGSize(width: radius, height: radius))
           let maskLayer = CAShapeLayer()
           maskLayer.path = maskPath.cgPath
           view.layer.mask = maskLayer
       }
}
